package com.bootdo.wx.service.impl;

import com.bootdo.wx.dao.CmsContentDao;
import com.bootdo.wx.domain.CmsContentDO;
import com.bootdo.wx.service.CmsContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class CmsContentServiceImpl implements CmsContentService {
	@Autowired
	private CmsContentDao cmsContentDao;
	
	@Override
	public CmsContentDO get(Long id){
		return cmsContentDao.get(id);
	}
	
	@Override
	public List<CmsContentDO> list(Map<String, Object> map){
		return cmsContentDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return cmsContentDao.count(map);
	}
	
	@Override
	public int save(CmsContentDO cmsContent){
		return cmsContentDao.save(cmsContent);
	}
	
	@Override
	public int update(CmsContentDO cmsContent){
		return cmsContentDao.update(cmsContent);
	}
	
	@Override
	public int remove(Long id){
		return cmsContentDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return cmsContentDao.batchRemove(ids);
	}

	@Override
	public CmsContentDO getByType(String type) {
		return cmsContentDao.getByType(type);
	}
	
}
